<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>数据列表</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
		<div class="actions">
			<a href="javascript:;" class="btn white btn-sm ajax-search"> <i
				class="fa fa-search"></i> 查询
			</a> <a href="javascript:;" class="btn white btn-sm search-reset"> <i
				class="fa fa-eraser"></i> 清除
			</a>
		</div>
	</div>
    <div class="portlet-body">
    	<div class="tabbable-line ">
			<ul class="nav nav-tabs ">
				<li  ><a href="userInfo/detail?id=$!id" class="ajaxify">基本信息</a></li>
				<li  ><a href="userInfo/orderDetail?id=$!id" class="ajaxify"> 订单记录</a></li>
				<li class="active" ><a href="userInfo/creditDetail?id=$!id"  class="ajaxify"> 信用记录</a></li>
				<li  ><a href="userInfo/scoreDetail?id=$!id" class="ajaxify"> 积分记录</a></li>
				<li  ><a href="userInfo/commendfriendDetail?id=$!id" class="ajaxify"> 推荐会员</a></li>
				<li  ><a href="userInfo/expDetail?id=$!id" class="ajaxify"> 经验值记录</a></li>
				<li  ><a href="userInfo/afterSaleDetail?id=$!id" class="ajaxify"> 售后记录</a></li>
				<li  ><a href="userInfo/invoiceDetail?id=$!id" class="ajaxify">开票记录</a></li>
			</ul>
			<div class="portlet-body form">
				<form action="userInfo/creditDetail" class="form-horizontal"
					method="get" id="searchForm">
					<div class="form-body">
						<div class="row">
							<div class="form-group">
								<div class="col-md-3">
									<label class="col-md-4 control-label">类型：</label>
									<div class="col-md-8">
										<select name="creditLogType" class="form-control">
											<option value="">全部</option>
											<option value="GAIN">获得</option>
											<option value="DEDUCT">扣除</option>
											<option value="USE">使用</option>
											<option value="RETURN">退还</option>
										</select>
									</div>
								</div>
								<script type="text/javascript">
									
								</script>
								<div class="col-md-3">
									<label class="col-md-4 control-label">详细说明</label>
									<div class="col-md-8">
										<input type="text" class="form-control" name="detail"
											value="$!detail"> <input type="hidden" value="$!id"
											name="id">
									</div>
								</div>
								<div class="col-md-3">
									<label class="control-label col-md-4">相关时间：</label> <label
										class="col-md-8"> <input class="form-control"
										type="text" name="startTime" id="startTime"
										value="$!startTime" readonly> <i
										class="fa fa-calendar"
										style="position: absolute; right: 10px; top: 10px"></i>
									</label>
								</div>
								<div class="col-md-3">
									<label class="control-label col-md-2">至：</label> <label
										class="col-md-8"> <input class="form-control"
										type="text" name="endTime" id="endTime" value="$!endTime"
										readonly> <i class="fa fa-calendar"
										style="position: absolute; right: 10px; top: 10px"></i>
									</label>
								</div>
							</div>
						</div>
					</div>
				</form>
			</div>
			<div class="tab-content">
				<div class="tab-pane active form">
					<div class="dataTables_wrapper no-footer">
						<div class="table-scrollable">
						   <table class="table table-striped table-bordered table-hover" id="tableCategory">
							  	<thead>
								<tr>
									<th>获得时间</th>
									<th>类型</th>
									<th>金额</th>
									<th>详细说明</th>
								</tr>
								</thead>
								<tbody>
 									#foreach($!credit in $!creditPage.result)
 									<tr>
 										<td>$!credit.createDate</td>
 										<td>$!credit.creditLogType.name</td>
 									
 										<td>$!credit.money </td>
 									
 										<td>$!credit.detail</td>
 									</tr>
 									#end
								</tbody>
							</table>
						</div>
				 	#set($page=$!creditPage)
					#set($pageUrl="/userInfo/list?$!queryString&pageNo=")
					#parse("_page.htm")
					</div>
				</div>
			</div>
		</div>
    </div>
</div>
<script src="/assets/scripts/views-date.js" type="text/javascript"></script>